<div class="container"> 
<!-- middle -->
<div id="middle" class="cols2">
    <div class="content" role="main">
		<!-- add comment -->
        <div class="add-comment" id="addcomments">
			<h3>User Log</h3>  
				
			<div class="comment-form">
            <?=form_open_multipart('profile/do_log','id="commentForm"');?>
			
				<div class="row alignleft field_select">
                    <label class="label_title"><strong>Date:</strong></label>
                     <?=form_dropdown('day',config_item('day'),substr($date,0,2),'id="day" style="width:40px" class="select_styled"')?>
                     <?=form_dropdown('month',config_item('month'),substr($date,3,2),'id="month" style="width:40px" class="select_styled"')?>
                     <?=form_dropdown('year',config_item('year'),substr($date,6,4),'id="year" style="width:80px" class="select_styled"')?>
					 
                </div>
					
                <div class="row alignleft rowSubmit">
                    <input type="submit" value="Search" class="btn-submit" style="margin-top:30px">
                </div>
				
				<div class="clear"></div>
				
            </form>
			</div>
        </div>
		<!--/add comment -->
		
		<article class="post-detail post-page">            
			<div class="entry">
            	
            <div class="row">
                    <div class="col col_1 ">
                    <div class="inner">
                   
                    
				<div class="styled_table table_blue">
                    <table>
                        <thead>
                            <tr>
                                <th style="width:10%">No</th>
                                <th style="width:25%">Date</th>
                                <th style="width:25%">Nik</th>
                                <th style="width:25%">User</th>
								<th style="width:10%">Ip</th>
                            </tr>
                        </thead>
							<?php 
								$i=1;
								foreach($logs as $log):?>
							<tr>
                                <td><?=$i?></td>
                                <td><?=$log['my_date']?></td>
                                <td><?=$log['EmployeeID']?></td>
                                <td><?=$log['EmployeeFirstName']?></td>
								<td><?=$log['ip_address']?></td>
                            </tr>
							<?php endforeach;?>
						<tbody>
							
						</tbody>
                        
                    </table>
                    </div>
					
					</div>
                    </div>
                    
					
                </div>
				
                <div class="clear"></div>
    
  			<div class="clear"></div>            
            </div>
                          
        </article>
		
	</div>
    <!--/ content -->
    
    <!-- sidebar -->
    <div class="sidebar">

		<!-- widget_contact -->
	        <div class="widget-container widget_contact">   
	            <div class="inner">   
	            	
	                <div class="contact-address">
	                	<div class="name"><strong><?=$profile['EmployeeFirstName']?></strong></div>
						<div class="address"><?=$profile['EmployeeTitle']?></div>
						<div class="phone"><em>Mobile:</em> <span><?=$profile['EmployeeHandPhone']?></span></div>
	                    <div class="fax"><em>Ext:</em> <span><?=$profile['EmployeeExtention']?></span></div>
		                <div class="mail"><em>Email:</em> <a href="mailto:contact@newssetter.com"><?=$profile['EmployeeEmail']?></a></div>
					</div>
		                  
					<div class="contact-social">
		            	<div><a href="#" class="btn btn_skype">Skype</a></div>
		                <div><a href="#" class="btn btn_twitter">Twitter</a></div>
		                <div><a href="#" class="btn btn_fb">Facebook</a></div>
		           	<div class="clear"></div>
		            </div>
                    
                    <div class="contact-map">
						
						<img src="<?=profileThumb($profile['employeeAvatar'],$profile['EmployeeID'],300,150)?>" style="height:100%" alt="">
						<p><?=anchor('profile/My/'.$this->session->userdata('user_login'),'Update Profile')?></p>
		            </div>
                    
				</div>     
			</div>
	        <!--/ widget_contact -->
                    
    </div>
    <!--/ sidebar -->
    
    <div class="divider"></div>
    
    
        	
</div>
<!--/ middle --> 
</div>
<!--/ container --> 